<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<title>出现错误</title>
		<link href="<s:url value='/css/base.css'/>" rel="stylesheet"
			type="text/css" />
	</head>
	<body>
		<div id="cen">
			程序发生错误，请联系管理员或给我们留言.
			<%
				Exception e = (Exception) request.getAttribute("exception");
				StringBuilder exceptionMsg = new StringBuilder();
				exceptionMsg.append(e.toString() + "\n");
				StackTraceElement[] elements = e.getStackTrace();
				for (StackTraceElement element : elements) {
					exceptionMsg.append(element.toString());
					exceptionMsg.append("\n");
				}
				out.println(exceptionMsg.toString());
			%>
		</div>
	</body>
</html>



